package com.server.server_a10.management.entity;

import lombok.Data;

import java.util.List;

@Data
public class ManageInf {
    private int code;
    private int count;
    private List list;
    private String msg;
    public boolean success(String msg, List list){
        this.code = 200;
        this.list = list;
        this.msg = msg;
        return true;
    }
    public boolean fail(String msg){
        this.code = 0;
        this.msg = msg;
        return true;
    }
    public boolean isNull(String msg){
        this.msg = msg;
        this.code = 100;
        return true ;
    }
}
